home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form DemoMain
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "DrvPlus 1.65 Demo"
- ClientHeight = 4020
- ClientLeft = 1080
- ClientTop = 2415
- ClientWidth = 7365
- ClipControls = 0 'False
- FillColor = &H00FF00FF&
- Height = 4710
- Left = 1020
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4020
- ScaleWidth = 7365
- Top = 1785
- Width = 7485
- Begin Label Label1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "Label1"
- Height = 2055
- Left = 1200
- TabIndex = 0
- Top = 480
- Width = 4935
- End
- Begin Menu mnuInfo
- Caption = "&Demos"
- Begin Menu mnuInfoRam
- Caption = "System &RAM..."
- End
- Begin Menu mnuInfoDrvSize
- Caption = "&Drive Info..."
- End
- Begin Menu mnuInfoFileTD
- Caption = "&File Time/Date..."
- End
- Begin Menu mnuInfoVolName
- Caption = "Change Volume Name..."
- End
- Begin Menu mnuInfoSep1
- Caption = "-"
- End
- Begin Menu mnuExit
- Caption = "E&xit"
- End
- End
- Begin Menu mnuHelp
- Caption = "&Help"
- Begin Menu mnuHelpContents
- Caption = "DLL Help &Contents..."
- End
- Begin Menu mnuHelpSearch
- Caption = "DLL Help &Search..."
- End
- Begin Menu mnuHelpSep
- Caption = "-"
- End
- Begin Menu mnuHelpOrderForm
- Caption = "&Order Form..."
- End
- Begin Menu mnuHelpEvaluation
- Caption = "&Evaluation Form..."
- End
- End
- 'VB demonstration for DrvPlus.DLL
- Sub Form_Load ()
- x% = GetDrvPlusVersion()
- nl = Chr$(13) + Chr$(10)
- FormCenterScreen Me
- mnuHelp.Caption = Chr$(8) + "&Help"
- msg$ = nl + "This small application demonstrates some" + nl
- msg$ = msg$ + "of the functions of DrvPlus.DLL and a few" + nl
- msg$ = msg$ + "VB tricks too. Print and study the program" + nl
- msg$ = msg$ + "to fully understand how it all works" + nl
- msg$ = msg$ + "together. Also, read the online Help file" + nl
- msg$ = msg$ + "DrvPlus.HLP to learn about the functions in" + nl
- msg$ = msg$ + " this version of DrvPlus ... and about how to" + nl
- msg$ = msg$ + " register this shareware utility."
- Label1.Caption = msg$
- End Sub
- Sub Form_Paint ()
- DoForm3D Me, sunken, 3, 0
- DoForm3D Me, raised, 1, 3
- DoControl3D Label1, raised, 4
- End Sub
- Sub mnuExit_Click ()
- End
- End Sub
- Sub mnuHelpContents_Click ()
- On Error Resume Next
- MyHelpFile$ = App.Path
- MyHelpFile$ = AddSeparator(MyHelpFile$) + "DRVPLUS.HLP"
- Screen.MousePointer = 11
- ret% = WinHelp(Me.hWnd, MyHelpFile$, HELP_CONTENTS, 0&)
- Screen.MousePointer = 0
- End Sub
- Sub mnuHelpEvaluation_Click ()
- On Error Resume Next
- WinPath$ = GetWinDir()
- WinPath$ = AddSeparator(WinPath$) + "WRITE.EXE"
- DocPath$ = App.Path
- DocPath$ = AddSeparator(DocPath$) + "EVALFRM.WRI"
- FullPath$ = WinPath$ + " " + DocPath$
- Screen.MousePointer = 11
- x = Shell(FullPath$, 3)
- Screen.MousePointer = 0
- End Sub
- Sub mnuHelpOrderForm_Click ()
- On Error Resume Next
- WinPath$ = GetWinDir()
- WinPath$ = AddSeparator(WinPath$) + "WRITE.EXE"
- DocPath$ = App.Path
- DocPath$ = AddSeparator(DocPath$) + "ORDERFRM.WRI"
- FullPath$ = WinPath$ + " " + DocPath$
- Screen.MousePointer = 11
- x = Shell(FullPath$, 3)
- Screen.MousePointer = 0
- End Sub
- Sub mnuHelpSearch_Click ()
- On Error Resume Next
- MyHelpFile$ = App.Path
- MyHelpFile$ = AddSeparator(MyHelpFile$) + "DRVPLUS.HLP"
- Screen.MousePointer = 11
- ret% = WinHelp(Me.hWnd, MyHelpFile$, HELP_PARTIALKEY, "")
- Screen.MousePointer = 0
- End Sub
- Sub mnuInfoDrvSize_Click ()
- Screen.MousePointer = 11
- DriveInfo.Show 1
- End Sub
- Sub mnuInfoFileTD_Click ()
- Screen.MousePointer = 11
- FileTD.Show 1
- End Sub
- Sub mnuInfoRam_Click ()
- Screen.MousePointer = 11
- RamInfo.Show 1
- End Sub
- Sub mnuInfoVolName_Click ()
- ShowIt:
- Me.Refresh
- Screen.MousePointer = 11
- ChgVname.Show 1
- If FormPassString = "NewVol" GoTo ShowIt
- End Sub
-